﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using HRProject.Code.Common;

namespace HRProject.Code.DTO
{
    public class BLAgentMonthlyHouseAllowance : BLAgentMonthlySalary
    {
        public const string HOUSE_ALLOWANCE = "HouseAllowance";
        private BLMonthlyHouseAllowanceTable monthRef;
        private BLSalaryInfo houseAllowance;

        public BLSalaryInfo HouseAllowance
        {
            get { return houseAllowance; }
            set { houseAllowance = value; }
        }

        public BLMonthlyHouseAllowanceTable MonthRef
        {
            get { return monthRef; }
            set { monthRef = value; }
        }

        public string HouseAllowanceString
        {
            get
            {
                return Util.CustomFormat(houseAllowance.InfoNumberValue.ToString(Constant.LongFormat, Constant.enCulture));
            }
        }

        public BLAgentMonthlyHouseAllowance(BLMonthlyHouseAllowanceTable monthRef)
            :base()
        {
            this.monthRef = monthRef;
            this.houseAllowance = new BLSalaryInfo();
            this.houseAllowance.InfoName = HOUSE_ALLOWANCE;
        }
    }
}
